﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace EFCoreIdentitySample.Models
{
    public class RegisterVm
    {
        [Required(ErrorMessage = "邮箱不可以为空！")]
        [DataType(DataType.EmailAddress, ErrorMessage = "邮箱验证失败,请重新输入！")]
        [DisplayName("邮箱")]
        public string Email { get; set; }
        [Required(ErrorMessage = "密码不可以为空！")]
        [DataType(DataType.Password, ErrorMessage = "密码格式错误,请重新输入！")]
        [DisplayName("密码")]
        public string Password { get; set; }
        [Required(ErrorMessage = "密码不可以为空！")]
        [DataType(DataType.Password, ErrorMessage = "密码格式错误,请重新输入！")]
        [DisplayName("重复密码")]
        public string ConfirmPassword { get; set; }
    }
}
